<template>
  <div class="info">
    <el-tabs v-model="activeName" @tab-click="tabClick">
      <el-tab-pane label="用户管理" name="1">
        <manage v-if="activeName === '1'"/>
      </el-tab-pane>
      <!--<el-tab-pane label="在线用户" name="2">-->
        <!--<online v-if="activeName === '2'"/>-->
      <!--</el-tab-pane>-->
      <el-tab-pane label="登录日志" name="3">
        <loginlog v-if="activeName === '3'"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
// import Online from './components/usermanage/online'
import Loginlog from './components/usermanage/loginlog'
import Manage from './components/usermanage/Manage'
export default {
  components: {
    // Online,
    Loginlog,
    Manage
  },
  data() {
    return {
      activeName: '1'
    }
  },
  methods: {
    tabClick() {
      console.log('tab')
    }
  }
}
</script>

<style lang="scss" scoped>
.info {
  padding: 0 20px;
}
</style>

